#ifndef TPJSONREADER_TEST
#define TPJSONREADER_TEST

#include <stdlib.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <map>



class TPjsonReader
{

public:
	TPjsonReader();
	~TPjsonReader();

typedef struct info { int x; int y; int w; int h; }Info;
public:
    int picWidth;
    int picHeight;

private:
    void readFormatSheet(std::fstream& file ,std::string& text,unsigned int f);
    void readFormatTotalSize(std::string& text,unsigned int f);

public:
	std::map<std::string, Info*>m_data;
	void readjson(const char* filename);
	void showInfo();
};




#endif // !TPJSONREADER_TEST
